import request from '@/utils/request'

// 查询原片列表
export function listOriginal(query) {
  return request({
    url: '/order/original/list',
    method: 'get',
    params: query
  })
}

export function listOriginalByIds(query) {
  return request({
    url: '/order/original/ids',
    method: 'get',
    params: query
  })
}

// 查询原片详细
export function getOriginal(id) {
  return request({
    url: '/order/original/' + id,
    method: 'get'
  })
}

// 新增原片
export function addOriginal(data) {
  return request({
    url: '/order/original',
    method: 'post',
    data: data
  })
}

// 修改原片
export function updateOriginal(data) {
  return request({
    url: '/order/original',
    method: 'put',
    data: data
  })
}

// 删除原片
export function delOriginal(id) {
  return request({
    url: '/order/original/' + id,
    method: 'delete'
  })
}
